package com.vanke.house.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/6/20 6:29 下午
 */
@Data
@TableName(value = "sale_house")
public class SaleHouse {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 房屋描述
     */
    @TableField(value = "title")
    private String title;

    /**
     * 房屋楼层
     */
    @TableField(value = "floor")
    private String floor;

    /**
     * 建造年份
     */
    @TableField(value = "build_year")
    private String buildYear;

    /**
     * 房屋户型
     */
    @TableField(value = "house_type")
    private String houseType;

    /**
     * 房屋面积
     */
    @TableField(value = "house_area")
    private String houseArea;

    /**
     * 关注数
     */
    @TableField(value = "followers")
    private String followers;

    /**
     * 房屋图片
     */
    @TableField(value = "house_img")
    private String houseImg;

    /**
     * 标签
     */
    @TableField(value = "tag")
    private String tag;

    /**
     * 所属地块
     */
    @TableField(value = "position_info")
    private String positionInfo;

    /**
     * 房屋朝向
     */
    @TableField(value = "orientation")
    private String orientation;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "publish_time")
    private Date publishTime;

    /**
     * 单价
     */
    @TableField(value = "unit_price")
    private String unitPrice;

    /**
     * 挂牌价
     */
    @TableField(value = "listing_price")
    private Integer listingPrice;

    /**
     * 是否满二
     */
    @TableField(value = "is_full_two")
    private String isFullTwo;

    /**
     * 采集时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "crawl_time")
    private Date crawlTime;

    /**
     * 房源详情
     */
    @TableField(value = "link")
    private String link;

    /**
     * 备注
     */
    @TableField(value = "note")
    private String note;
}